using System;
using System.Collections.Generic;
using System.Text;
using BO.Custom;
using DAL;
using Entity;

namespace Business
{
	public class InGroupBusiness
	{
		#region code CMS
        public static List<InGroup> GetInGroupList()
        {
		    var result = FreshCmsDataAccessProvider.InGroup.GetInGroupList();
		    return result;
        }

        //public static List<InGroup> GetInGroupListByPaging(int pageIndex, int pageSize, ref int totalRecord)
        //{
        //    var result = FreshCmsDataAccessProvider.InGroup.GetInGroupListByPaging(pageIndex, pageSize, ref totalRecord);
        //    return result;
        //}

        //public InGroup GetInGroupById(int groupId)
        //{
        //    var result = FreshCmsDataAccessProvider.InGroup.GetInGroupById(groupId);
        //    return result;
        //}

        //public static int InsertInGroup(InGroup InGroup)
        //{
        //    var result = FreshCmsDataAccessProvider.InGroup.InsertInGroup(InGroup);
        //    return result;
        //}

        public static int UpdateInGroup(InGroup InGroup)
        {
            var result = FreshCmsDataAccessProvider.InGroup.UpdateInGroup(InGroup);
            return result;
        }

        public static int DeleteInGroup(int groupId)
        {
            var result = FreshCmsDataAccessProvider.InGroup.DeleteInGroup(groupId);
            return result;
        }

        //private static List<InGroup> ReformatList(List<InGroup> lst)
        //{
        //    if (!(lst.Count > 0))
        //        return lst;
        //    foreach (var item in lst)
        //    {
        //        item.StatusName = StatusBusiness.GetShortStatusName(item.GroupStatus);
        //    }
        //    return lst;
        //}
		#endregion
	}
}